
<h1 class='text-info'> Pet - Editar ou Inserir</h1>

<form role="form" action="<?= $link_form ?>"  method="post" class="form-horizontal">
    <input type="hidden" name="idpet" value="<?= $c->getIdpet(); ?>">
    <div class="form-group">
        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="nome">Nome:</label>
        <div class="col-xs-9 col-sm-9 col-md-9 col-lg-9 " >
            <input class="form-control" type="text" id="nome" name="nome" value="<?= $c->getNome(); ?>" placeholder="Informe o nome">
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove"></span>-->
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="especie">Espécie:</label>
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
            <input class="form-control" type="text" id="especie" name="especie" value="<?= $c->getEspecie(); ?>" placeholder="Informe a espécie">
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove"></span>-->
        </div>

        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="raca">Raça:</label>
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
            <input class="form-control" type="text" id="raca" name="raca" value="<?= $c->getRaca(); ?>" placeholder="Informe a raça">
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove"></span>-->
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="peso">Peso:</label>
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 " >
            <input class="form-control" type="text" id="peso" name="peso" value="<?= $c->getPeso(); ?>" placeholder="Informe o peso">
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove text-danger"></span>-->
        </div>

        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="dtnasc">Nascimento:</label>
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 " >
            <input class="form-control" type="text" id="dtnasc" name="dtnasc" value="<?= $c->getDtnasc(); ?>" placeholder="Informe a data de nascimento">
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove text-danger"></span>-->
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="idcliente">Cliente:</label>
        <select class="form-control" name="idcliente" id="idcliente">
                <option value="0">Selecione um Cliente</option>
                <?php foreach ($listaCliente as $ele) { ?>
                    <option value="<?= $ele['idcliente'] ?>"><?= $ele['nome'] ?></option>
                <?php } ?>
            </select>
    </div>
            
    <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok-circle"></span> Salvar</button>
    <a href="?s=cpet" class="btn btn-danger"><span class="glyphicon glyphicon-remove-circle"></span> Cancelar</a>
</form>